package com.kgcx.common.constant;

public class Cons {
    public static final String MD5_KEY = "GAHDOIAKDOJAWD&@8767%!@#*HDUAW*&D";

    public static final String DATE_FORMAT_YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
    public static final String DATE_FORMAT_YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS";
    public static final String DATE_FORMAT_YYYY_MM_DD = "yyyy-MM-dd";
    public static final String DATE_FORMAT_YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT_YYYY_MM_DD_HH_MM_SS_SSS = "yyyy-MM-dd HH:mm:ss.SSS";

    /**
     * 1-是
     */
    public static final Integer BOOLEAN_TRUE = 1;
    /**
     * 2-否
     */
    public static final Integer BOOLEAN_FALSE = 2;

    public static Boolean $true(Integer val) {
        return BOOLEAN_TRUE.equals(val);
    }

    /**
     * 101-启用
     */
    public static final Integer COMMON_STATUS_ACTIVE = 101;
    /**
     * 102-禁用
     */
    public static final Integer COMMON_STATUS_DISABLE = 102;
    /**
     * 103-删除
     */
    public static final Integer COMMON_STATUS_DELETE = 103;

    /**
     * 0-离线
     */
    public static final Integer DRIVER_STATE_OFF = 0;
    /**
     * 1-上线
     */
    public static final Integer DRIVER_STATE_ON = 1;
    /**
     * 2-待命
     */
    public static final Integer DRIVER_STATE_STAY = 2;
    /**
     * 3-入栈中
     */
    public static final Integer DRIVER_STATE_PREIN = 3;
    /**
     * 4-入栈
     */
    public static final Integer DRIVER_STATE_IN = 4;
    /**
     * 5-服务中
     */
    public static final Integer DRIVER_STATE_RUN = 5;

    /**
     * 1-立即接机
     */
    public static final Integer ORDER_TYPE_IMMEDIATELY_PLANE_PICK = 1;
    /**
     * 2-立即接站
     */
    public static final Integer ORDER_TYPE_IMMEDIATELY_TRAIN_PICK = 2;
    /**
     * 3-预约接机
     */
    public static final Integer ORDER_TYPE_PLAN_PLANE_PICK = 3;
    /**
     * 4-预约接站
     */
    public static final Integer ORDER_TYPE_PLAN_TRAIN_PICK = 4;
    /**
     * 5-预约送机
     */
    public static final Integer ORDER_TYPE_PLAN_PLANE_SEND = 5;
    /**
     * 6-预约送站
     */
    public static final Integer ORDER_TYPE_PLAN_TRAIN_SEND = 6;
    /**
     * 7-预约用车
     */
    public static final Integer ORDER_TYPE_PLAN_COMMON = 7;
    /**
     * 8-立即用车
     */
    public static final Integer ORDER_TYPE_IMMEDIATELY_COMMON = 8;

}
